package Homework1Shapes;

public class ShapeMain 
{
	public static void main(String [] args)
	{
		//initialize database
		ShapeDatabase database = new ShapeDatabase();
		
		//add shapes to database
		database.addShapeToCollection(new Square());
		database.addShapeToCollection(new Triangle());
		database.addShapeToCollection(new Circle());
		database.addShapeToCollection(new Square());
		database.addShapeToCollection(new Triangle());
		database.addShapeToCollection(new Square());
		database.addShapeToCollection(new Triangle());
		database.addShapeToCollection(new Square());
		
		//print the number of shapes in the database
		database.printNumberofShapes();
		
		//get the collection
		ShapeCollection collection = database.getCollection();
		
		//sort the collection of shapes
		collection.sortShapes();
		
		//display the shapes in the collection
		collection.displayShapes();
	}
}
